package mxmf.ctrl.model.content;

import java.io.Serializable;

public class PictureVO implements Serializable {

    private static final String ACTION_DELETE = "delete";
    private static final String ACTION_UPDATE = "update";

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private String filePath;

    private String fileType;

    private String externalCode;

    private Long id;

    private String action;

    private Integer index;// 图片顺序

    private boolean noCopy;

    public boolean isDelete() {
        return ACTION_DELETE.equals(action);
    }
    public boolean isUpdate() {
        return ACTION_UPDATE.equals(action);
    }

    /**
     * @return the fileType
     */
    public String getFileType() {
        return fileType;
    }

    /**
     * @param fileType the fileType to set
     */
    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    /**
     * @return the filePath
     */
    public String getFilePath() {
        return filePath;
    }

    /**
     * @param filePath the filePath to set
     */
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    /**
     * @return the externalCode
     */
    public String getExternalCode() {
        return externalCode;
    }

    /**
     * @param externalCode the externalCode to set
     */
    public void setExternalCode(String externalCode) {
        this.externalCode = externalCode;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public boolean isNoCopy() {
        return noCopy;
    }

    public void setNoCopy(boolean noCopy) {
        this.noCopy = noCopy;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

}
